<script setup lang="ts">
import { RouterView } from "vue-router";
import { useAppStoreWithOut } from "@/store/modules/app";
import { onMounted } from "vue";
import { getStorage } from "./utils/storage/storage";
import { useRouter } from "vue-router";
const router = useRouter();
const appstore = useAppStoreWithOut();
onMounted(() => {
  // const token = getStorage("token");
  // if (token) {
  //   appstore.setToken(token);
  // } else {
  //   router.push("/login");
  // }
  // stroe.initWebSocket();
});
</script>

<template>
  <RouterView />
</template>

<style scoped lang="scss"></style>
